Passed
Push — master ( acc7e3...0bc783 )
by
unknown
02:02
created

removeJohnDoe1676042513328.down   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
1
import { MigrationInterface, QueryRunner } from "typeorm"
2
3
export class removeJohnDoe1676042513328 implements MigrationInterface {
4
5
    public async up(queryRunner: QueryRunner): Promise<void> {
6
        await queryRunner.query(`DELETE FROM "user" WHERE email = '[email protected]'`);
7
    }
8
9
    public async down(queryRunner: QueryRunner): Promise<void> {
10
        await queryRunner.query(`INSERT INTO "user" VALUES('c5dc7188-cdf7-4439-a936-4379a79635de', 'John', 'Doe', '[email protected]', '$argon2i$v=19$m=4096,t=3,p=1$u7Jw1anFWyHcpfeOxjGYuQ$Ic4YheZZK9aF81q7CW8geSiG6Bsy+f52EnKTyzBlEXE', '$argon2i$v=19$m=4096,t=3,p=1$slHh/xhoh8SvIjApBHSZnA$hqsry11DeWbNYsFnzADPkYOP2WQrf0yqDXGC3xjSX9A', 'cooperator', '2020-04-04')`, undefined);
11
    }
12
13
}
14